<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/* 注意：文件格式 = utf-8
 */
function smarty_modifier_title($sCode, $sField)
{
	static $rMap;
	if (!isset($rMap)) {
		$rMap = array(
			'Order.status' => array(
				'unpaid' => '未付款',
				'paid' => '等待收货',
				'recieved' => '等待确认',
				'closed' => '已完成',
				'issued' => '发生纠纷',
				'removed' => '已删除',
			),
		);
	}
	if (isset($rMap[$sField][$sCode])) {
		return $rMap[$sField][$sCode];
	}
	else {
		return $sCode;
	}
}
?>
